﻿using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace QuDao.Api
{
    /// <summary>
    /// AutoMapper配置
    /// </summary>
    public class MappingProfile : Profile
    {
        /// <summary>
        /// 
        /// </summary>
        public MappingProfile()
        {
            //在这里配置对象映射关系，AutoMapper会自动搜索继承了Profile的对象并调用初始化配置
            CreateMap<User, LoginUserModel>();
            CreateMap<Area, AreaDto>();
            //CreateMap<GoodsFreebackDto, GoodsFreeback>();
            //CreateMap<GoodsFreebackDto, GoodsFreeback>();
            //CreateMap<GoodsFreebackDto, GoodsFreeback>();
        }
    }
}
